AddCSLuaFile('custom.lua')

registerFunction("ignite", "e:n", "", function(self, args)
	local op1 = args[2]
	local op2 = args[3]
	local rv1 = op1[1](self, op1)
	local rv2 = op2[1](self, op2)
	if (!validEntity(rv1)) then return end
	if(!isOwner(self, rv1)) then return nil end
	rv1:Ignite(rv2,75)
end)

registerFunction("extinguish", "e:n", "", function(self, args)
	local op1 = args[2]
	local rv1 = op1[1](self, op1)
	if (!validEntity(rv1)) then return end
	if(!isOwner(self, rv1)) then return nil end
	rv1:Extinguish()
end)

registerFunction("igniteA", "e:n", "", function(self, args)
	local op1 = args[2]
	local op2 = args[3]
	local rv1 = op1[1](self, op1)
	local rv2 = op2[1](self, op2)
	if (!self.player:IsAdmin()) then return nil end
	if (!validEntity(rv1)) then return end
	rv1:Ignite(rv2,75)
end)

registerFunction("extinguishA", "e", "", function(self, args)
	local op1 = args[2]
	local rv1 = op1[1](self, op1)
	if (!self.player:IsAdmin()) then return nil end
	if (!validEntity(rv1)) then return end
	rv1:Extinguish()
end)
// ignite(entity)
//by PhenixBlaze (use this code wisely)